const { defineConfig } = require('@vue/cli-service');

module.exports = defineConfig({
	transpileDependencies: true,
	lintOnSave: false,
	productionSourceMap: false,
	publicPath: '/maoyan',
	devServer: {
		proxy: {
			'/mmdb': {
				target: 'https://wx.maoyan.com',
				changeOrigin: true,
			},
			'/tianqi': {
				target: 'http://api.tianapi.com',
				changeOrigin: true,
			},
			'/api': {
				target: 'https://www.haodf.com',
				changeOrigin: true,
				pathRewrite: {
					'^/api': '',
				},
			},
		},
	},
});
